package com.briup.gxqd.controller;

import com.briup.gxqd.utils.Message;
import com.briup.gxqd.utils.MessageUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: qxqd
 * @description: 轮播图控制器
 * @author: rendc
 * @create: 2020-06-11 16:41
 **/
@RestController
@RequestMapping("carousel")
@Api(description = "轮播图数据管理接口")

public class CarouselController {
    //4. 轮播图
    @ApiOperation(value = "轮播图")
    @GetMapping("findAllCarousel")
    public Message findAllCarousel() {
        String url = "http://121.199.29.84/gxqd/img1.jpg";
        String url1 = "http://121.199.29.84/gxqd/img2.jpg";
        String url2 = "http://121.199.29.84/gxqd/img3.jpg";
        String url3 = "http://121.199.29.84/gxqd/img4.jpg";
        List list = new ArrayList();
        list.add(url);
        list.add(url1);
        list.add(url2);
        list.add(url3);

        return MessageUtil.success("success", list);
    }

}















